<?php
session_start();
error_reporting(0);
if (empty($_SESSION['username']) AND empty($_SESSION['passuser'])){
  echo "<link href='style.css' rel='stylesheet' type='text/css'>
 <center>Untuk mengakses modul, Anda harus login <br>";
  echo "<a href=index.php><b>LOGIN</b></a></center>";
}
else{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SMSBIT v1.1 Beta Version</title>
  <script type="text/javascript" src="jquery.js"></script>
  <script type="text/javascript" src="noconflict.js"></script>
  <script type="text/javascript" src="phocagalleryslideshow.js"></script>
  <script type="text/javascript" src="mootools.js"></script>
<script language="javascript" type="text/javascript">
    tinyMCE_GZ.init({
    plugins : 'style,layer,table,save,advhr,advimage, ...',
		themes  : 'simple,advanced',
		languages : 'en',
		disk_cache : true,
		debug : false
});
</script>
<script language="javascript" type="text/javascript"
src="../tinymcpuk/tiny_mce_src.js"></script>
<script type="text/javascript">
tinyMCE.init({
		mode : "textareas",
		theme : "advanced",
		plugins : "table,youtube,advhr,advimage,advlink,emotions,flash,searchreplace,paste,directionality,noneditable,contextmenu",
		theme_advanced_buttons1_add : "fontselect,fontsizeselect",
		theme_advanced_buttons2_add : "separator,preview,zoom,separator,forecolor,backcolor,liststyle",
		theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
		theme_advanced_buttons3_add_before : "tablecontrols,separator,youtube,separator",
		theme_advanced_buttons3_add : "emotions,flash",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		extended_valid_elements : "hr[class|width|size|noshade]",
		file_browser_callback : "fileBrowserCallBack",
		paste_use_dialog : false,
		theme_advanced_resizing : true,
		theme_advanced_resize_horizontal : false,
		theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
		apply_source_formatting : true
});

	function fileBrowserCallBack(field_name, url, type, win) {
		var connector = "../../filemanager/browser.html?Connector=connectors/php/connector.php";
		var enableAutoTypeSelection = true;
		
		var cType;
		tinymcpuk_field = field_name;
		tinymcpuk = win;
		
		switch (type) {
			case "image":
				cType = "Image";
				break;
			case "flash":
				cType = "Flash";
				break;
			case "file":
				cType = "File";
				break;
		}
		
		if (enableAutoTypeSelection && cType) {
			connector += "&Type=" + cType;
		}
		
		window.open(connector, "tinymcpuk", "modal,width=600,height=400");
	}
</script>

<link rel="shortcut icon" href="images/favicon.ico" />
<link href="<?php echo "template.css" ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo "style.css" ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo "system.css" ?>" rel="stylesheet" type="text/css" />
</head>

<body id="ext-gen9" class="  ext-gecko ext-gecko3">
	<div id="container">
		<div id="page-header">
			<div id="top-nav">
				<div id="menubar">
					<ul class="menu">
						<li class="menuitem">
							<a href="media.php?module=home"><span>Home</span></a>
						</li>
						<li class="menuitem">
							<a href="media.php?module=pesan"><span>Pesan</span></a>
						</li>
						<li class="menuitem">
							<a href="media.php?module=anggota&act=grup"><span>Grup</span></a>
						</li>
						<li class="menuitem">
							<a href="media.php?module=anggota"><span>Anggota</span></a>
						</li>
						<li class="menuitem">
							<a href="media.php?module=sms"><span>SMS</span></a>
						</li>
						<li class="menuitem">
							<a href="media.php?module=grafik"><span>Grafik</span></a>
						</li>
						<li class="menuitem">
							<a href="logout.php"><span>Logout</span></a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<div id="page-body">
			<div id="main-page">
				<div id="kontenx">
					<?php include "content.php"; ?>
				</div>
			</div>
		</div>
	</div>
	<div id="page-footer">
		<div id="footer-isi">Hak Cipta &copy; 2010 Direktorat Pembinaan TK dan SD<br>Semua Hak Dilindungi</div>
	</div>
</body>
</html>
<?php
}
?>
